package com.yycx.module.bus.provider.controller.hy;

import com.yycx.common.base.entity.EntityMap;
import com.yycx.common.mybatis.model.ResultBody;
import com.yycx.common.springmvc.base.BaseController;
import com.yycx.module.bus.client.entity.BusPayment;
import com.yycx.module.bus.provider.service.BusPaymentService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 海鹰BusPayment控制器
 *
 * @author flyme
 * @date 2020-09-07
 */
@RestController
@RequestMapping("/bus/payment/")
public class HyBusPaymentController extends BaseController<BusPaymentService, BusPayment> {


    @ApiOperation(value = "获取退保证金申请信息", notes = "获取退保证金申请信息")
    @GetMapping(value = "getRefundBondInfo")
    public ResultBody getRefundBondInfo(String selectIds) {
        return bizService.getRefundBondInfo(selectIds);
    }

    @ApiOperation(value = "获取回款申请信息", notes = "获取回款申请信息")
    @GetMapping(value = "getReturnInfo")
    public ResultBody getReturnInfo(String selectIds) {
        return bizService.getReturnInfo(selectIds);
    }


    @ApiOperation(value = "获取结算开票信息", notes = "获取结算开票信息")
    @GetMapping(value = "getInvoiceInfo")
    public ResultBody getInvoiceInfo( String settleIds) {
        EntityMap result = bizService.getInvoiceInfo(settleIds);
        return ResultBody.ok(result);
    }

    @ApiOperation(value = "获取退货款申请信息", notes = "获取退货款申请信息")
    @GetMapping(value = "getRefundHkInfo")
    public ResultBody getRefundHkInfo(String selectIds) {
        return bizService.getRefundHkInfo(selectIds);
    }

    @ApiOperation(value = "获取结算支付信息", notes = "获取结算支付信息")
    @GetMapping(value = "getSettlePayInfo")
    public ResultBody getSettlePayInfo(String settleIds) {
        return bizService.getSettlePayInfo(settleIds);
    }


    @ApiOperation(value = "获取结算申请信息", notes = "获取结算申请信息")
    @GetMapping(value = "getSettleApplyInfo")
    public ResultBody getSettleApplyInfo(Integer settleType, String settleIds) {
        return bizService.getSettleApplyInfo(settleType, settleIds);
    }

    @ApiOperation(value = "获取部门结算申请信息", notes = "获取部门结算申请信息")
    @GetMapping(value = "getDeptSettleApplyInfo")
    public ResultBody getDeptSettleApplyInfo(String settleIds) {
        return bizService.getDeptSettleApplyInfo(settleIds);
    }


}
